home *** CD-ROM | disk | FTP | other *** search
/ Professional Soft Collection 1.02 / Professional Soft Collection 1.02.iso / qemm.80c / technote.qip / FRAME.TEC < prev    next >
Text File  |  1995-11-04  |  7KB  |  127 lines

  1.  
  2.                 Why the EMS Page Frame is Important
  3.  
  4.  Quarterdeck Technical Note #295              Filename: FRAME.TEC
  5.  by Michael Bolton                          CompuServe: FRAME.TEC
  6.  Last revised:  4/02/95                       Category: QEMM
  7.  
  8.  Subject: How the EMS page frame can save much more than the 64K of
  9.           High RAM than it requires, and why disabling the page
  10.           frame is a bad idea.
  11.  
  12.  Technical support staff at some companies will sometimes suggest
  13.  that you disable the expanded memory page frame in order to get
  14.  64K more High RAM.  This is short-sighted and wasteful.  The
  15.  expanded memory page frame is one of the most valuable resources
  16.  available to increase the amount of memory available to your DOS
  17.  programs.
  18.  
  19.  To understand the usefulness of the EMS page frame in a
  20.  non-technical way, suppose an empty space, 16" x 12", on an
  21.  otherwise blank wall in your living room.  Some people might put
  22.  up a painting (which displays one thing, all the time), but most
  23.  would prefer a television screen (in which you can see what you
  24.  want, when you want to see it).
  25.  
  26.  On a more technical level, the page frame is a 64K window of
  27.  address space, typically located above the 640K line, that can be
  28.  shared and used by multiple programs to reduce their overhead.  To
  29.  understand how expanded memory works, it is most useful to
  30.  understand the concept of mapping.  Mapping is the process by
  31.  which memory management hardware and software can make memory
  32.  appear in appropriate places at appropriate times; it is the
  33.  process of associating memory with an address other than its
  34.  actual one.  The expanded memory specification (EMS) uses mapping
  35.  to make portions of expanded memory appear inside the EMS page
  36.  frame when that memory is requested by a program.  When a program
  37.  needs more memory than what is normally available to it under DOS,
  38.  it can request that some expanded memory be allocated from either
  39.  an EMS board, or from the extended memory managed and made to
  40.  appear as expanded memory by a 386 memory manager such as QEMM.
  41.  
  42.  Expanded memory has no addresses of its own, but can be made to
  43.  appear at a valid address -- "mapped in".  Expanded memory pages
  44.  that are not currently needed may be "mapped out" -- relieved of
  45.  their addresses and put back into the expanded memory pool, with
  46.  code and data still intact. When the application needs these
  47.  pages, they are "mapped in" to the EMS page frame again.  It is
  48.  therefore possible for a program that uses expanded memory to have
  49.  access to much more memory than DOS itself can see of its own
  50.  accord.  This is similar in concept to bank switching and paged
  51.  memory systems, techniques used to extend and add power to
  52.  everything from mainframe computers to high-end UNIX systems to
  53.  DOS machines.  Any program loaded on your system may use EMS at
  54.  any time, even while other programs have access to it.
  55.  
  56.  Mapping is also useful for creating High RAM; in the same way as
  57.  detailed above, memory can be associated with unused addresses
  58.  between 640K and 1MB.  The 386 hardware and QEMM cooperate to make
  59.  memory appear where there is otherwise none; this memory is called
  60.  High RAM. Programs can be loaded into High RAM instead of
  61.  conventional memory. This allows more room in conventional memory
  62.  for DOS programs.  Unlike the page frame, however, only one
  63.  program at a time can occupy a block of High RAM.
  64.  
  65.  QEMM's StealthROM feature uses mapping for yet another purpose.
  66.  The 386 chip can be made to map memory in or out of DOS' address
  67.  space at any time.  StealthROM uses the page frame and 386 mapping
  68.  to map system, disk, or video ROMs in and out of DOS' address
  69.  space when appropriate. More information on StealthROM is
  70.  available in Quarterdeck Technical Note #168, QEMM's StealthROM
  71.  Technology (STLTECH.TEC).
  72.  
  73.  The Quarterdeck Expanded Memory Manager, QEMM, provides expanded
  74.  memory services, allowing any EMS-using program on your system to
  75.  take advantage of expanded memory.  QEMM itself also takes
  76.  advantage of expanded memory for its StealthROM, SqueezeFrame, and
  77.  Stealth D*Space features.
  78.  
  79.  Thus any advice to remove the page frame is penny-wise and
  80.  pound-foolish.  Remember that the page frame is 64K of address
  81.  space that can be used any program, at any time, to access
  82.  effectively as much memory as it likes.  Some view the page frame
  83.  as 64K of address space that could be used to hold up 64K of
  84.  programs, but it is much more useful to consider the page frame as
  85.  a place to access up to 32 megabytes of code and/or data for the
  86.  programs that use it.  The distinction is very similar to the
  87.  difference between a TV and a painting.
  88.  
  89.  On an example system, with the page frame enabled, StealthROM can
  90.  create an 83K of extra High RAM.  This alone justifies the
  91.  investment in the page frame, returning an extra 19K.  Stealth
  92.  D*Space can also use the page frame, reducing the overhead for
  93.  Microsoft's DoubleSpace or DriveSpace disk compression utilities
  94.  by 40K.  Stacker's EMS feature can permit similar memory gains.
  95.  
  96.  This example system is on a Novell network.  If the page frame is
  97.  enabled, one may use EMSNETX as the network redirector instead of
  98.  NETX. The overhead for the latter is 44K; for the former it's a
  99.  little less than 10K.  When EMS is available, VSAFE, on that
  100.  system, reduces its overhead from 22K to 6.5K; MSCDEX goes from
  101.  35K to 15K, and so on. Thus 194K of code is loaded for an
  102.  investment of 64K, at a net savings of 130K.
  103.  
  104.  In addition to these savings, EMS is also available to DOS
  105.  application programs that can use it.  If an application uses EMS,
  106.  it can reduce its conventional memory overhead dramatically,
  107.  and/or improve its performance.  The Lotus 1-2-3 Release 2 series,
  108.  the most widely-installed version of Lotus, uses expanded memory;
  109.  WordPerfect 5.1 similarly uses expanded memory. Neither of these
  110.  programs uses XMS (or any other flavour of) extended memory. VCPI,
  111.  a memory management specification for DOS Extended applications,
  112.  depends on an expanded memory manager to be present. Not all VCPI
  113.  applications require a page frame, but many of them attempt to map
  114.  a page in the page frame, and refuse to run if they can't.
  115.  
  116.  In summary, it is imprudent to disable the EMS page frame in order
  117.  to create more High RAM.  For a 64K investment, you can typically
  118.  recover a good deal more memory.
  119.  
  120.  ******************************************************************
  121.  *      Trademarks are property of their respective owners.       *
  122.  *   This and other technical notes may be available in updated   *
  123.  *     forms through Quarterdeck's standard support channels.     *
  124.  *          Copyright (C) 1995 Quarterdeck Corporation            *
  125.  ******************** E N D   O F   F I L E ***********************
  126.  
  127.